﻿// CCyjpswDialog.cpp: 实现文件
//

#include "stdafx.h"
#include "CCyjpswDialog.h"
#include "afxdialogex.h"


// CCyjpswDialog 对话框

IMPLEMENT_DYNAMIC(CCyjpswDialog, CDialog)

CCyjpswDialog::CCyjpswDialog(CWnd* pParent /*=nullptr*/)
	: CDialog(IDD_DIALOG6, pParent)
{

}

CCyjpswDialog::~CCyjpswDialog()
{
}

void CCyjpswDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CCyjpswDialog, CDialog)
	
	ON_EN_CHANGE(IDC_EDIT_PSW, &CCyjpswDialog::OnEnChangeEditPsw)
END_MESSAGE_MAP()


// CCyjpswDialog 消息处理程序




void CCyjpswDialog::OnEnChangeEditPsw()
{
	CString strPsw;
	GetDlgItem(IDC_EDIT_PSW)->GetWindowText(strPsw);
	if (strPsw == L"CYJ123")
	{
		EndDialog(5);
	}
}
